package com.xgjweb.fsi.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.xgjweb.fsi.domain.Album;
import com.xgjweb.fsi.domain.Picture;

public interface IPictureService {
	/**
	 * 删除相片
	 */
	public Boolean deletePicture(Picture picture) throws Exception;

	/**
	 * 查询相片
	 */
	public List<Picture> queryPicture(Album album) throws Exception;
	/**
	 * 查询相片 根据相册
	 */
	public List<Picture> queryPictureByAlbum(Album album) throws Exception;
	
	
	/**
	 * 查找相片
	 */
	public Picture findPicture(Picture picture) throws Exception;

	/**
	 * 更新相片
	 */
	public Boolean updatePicture(Picture picture) throws Exception;

	/**
	 * 添加相片
	 */
	public ActionForward addPicture(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception;

	/**
	 * 添加相册
	 */
	public Boolean addAlbum(Album album) throws Exception;

	/**
	 * 更改相册
	 */
	public Boolean updateAlbum(Album album) throws Exception;

	/**
	 * 删除相册
	 */
	public Boolean deleteAlbum(Album album) throws Exception;

	/**
	 * 查找相册
	 */
	public Album findAlbum(Album album) throws Exception;

	/**
	 * 查寻相册
	 */
	public List<Album> queryAlbum() throws Exception;

}
